<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Budgeter - <?php echo $title; ?></title>
        <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/reset.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/base.css" />
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/crypto.js"></script>
    </head>
    <body>
        <div id="header">
            <div class="logo">
                <h1><a href="<?php echo base_url(); ?>">Budgeter 2.0</a></h1>
            </div>
            <?php if ($this->session->userdata('logged_in')): ?>
            <div id="nav">
                <div class="menu">
                    <ul>
                        <li><a href="<?php echo site_url("/home"); ?>">Home</a></li>
                        <li><a href="<?php echo site_url("expenses/add"); ?>">Add</a></li>
                        <li><a href="<?php echo site_url("expenses/view/" . $this->session->userdata('user_id')); ?>">View</a></li>
                        <li><a href="<?php echo site_url("expenses/graph") ?>">Graph</a></li>
                    </ul>
                    <br />
                </div>
            </div>
            <?php endif ?>
            <div class="notification">
                <?php if ($this->session->flashdata('important')): ?>
                    <p class="important"><?php echo $this->session->flashdata('important'); ?></p>
                <?php endif ?>
                <?php if ($this->session->flashdata('warning')): ?>
                    <p class="warning"><?php echo $this->session->flashdata('warning'); ?></p>
                <?php endif ?>
                <?php if ($this->session->flashdata('message')): ?>
                    <p class="info"><?php echo $this->session->flashdata('info'); ?></p>
                <?php endif ?>
            </div>
        </div>
        <div id="content">
